
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
     <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <style>
    </style>
</head>

<body style="color:#333;padding:3px;">
    <!-- 标题 -->
    <div class="page-heade">
        <h2 class="title_color text-center">DP经销商订单订货数量坎级设置</h2>
    </div>
    <!-- 标题 -->
    <div>
    <form action=""  class="form-inline">
         <table class="tab-content table-bordered text-center table bud_hei" border="1" style="margin-bottom:1px">
         <tr>
			<td colspan="4" class="text-left"><a href="javascript:;" class="btn btn-info" id="add">添加</a></td>
         </tr>
            <tr class="info">
                <td class="text-center">No.</td>
                <td class="text-center">条件</td>
                <td class="text-center">提示</td>
                <td class="text-center">操作</td>
            </tr>
            <tbody style="border:0">
               
            </tbody>
         </table>
    </form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
	<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
      <script src="__STATIC__/layout/js/common.js"></script>
    <script>
     $("#add").click(function(){
          var str = '<form method="post" class="form-inline" ><table class="text-center" style="margin:70px"><tr><td class="padding-10">数量区间<span class="colorRed">*</span><input type="text" class="form-control" style="width:130px" id="numqj1"/> ≤数量<<input type="text" class="form-control" style="width:130px" id="numqj2" /></td></tr><tr><td class="padding-10">说明<span class="colorRed">*</span>：<input type="text" class="form-control" style="width:80%" id="state"/></td></tr><tr><td class="padding-10 text-center"><button class="btn btn-success" type="button" id="tijiao">提交</button><span class="lr_5"></span><button class="btn btn-warning back" type="button">返回</button></td></tr></table></form>'
            layer.open({
              type: 1,
              title:"添加",
              skin: 'layui-layer-rim', //加上边框
              area: ['600px', '440px'], //宽高
              content: str
            });
        });
      
       $(document).on("click","#tijiao",function(){
       	 if($("#numqj1").val()==""){
       	 	 alert("数量区间不能为空！")
       	 }else if($("#numqj2").val()==""){
       	 	alert("数量区间不能为空！")
       	 }else if($("#state").val()==""){
       	 		alert("说明不能为空！")
       	 }else{

       	 }
       })
         $(document).on("click",".back",function(){
          parent.layer.close(parent.layer.getFrameIndex(window.name));
      })
    </script>
</body>

</html>
